package com.centaline.androidsalesblog.api;

import com.centaline.androidsalesblog.base.BaseApi;
import com.centanet.framework.interfaces.IResponseListener;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;

/**
 * 新浪open api
 * Created by guilin on 16/4/11.
 */
public abstract class SinaOpenApi<T> extends BaseApi<T> {

    protected final Oauth2AccessToken accessToken;

    public SinaOpenApi(Class<?> tag, Oauth2AccessToken accessToken,
                       Class<T> aClass, IResponseListener<T> iResponseListener) {
        super(tag, aClass, iResponseListener);
        this.accessToken = accessToken;
    }

    @Override
    protected String getIp() {
        return "https://api.weibo.com/2/";
    }
}
